//lunbotu
define(function(){
	function fn(){
		var timer=null;
	    var index=0;
	    var $olist=$(".ols li");
	    var $ulist=$(".oul li");
	 timer=setInterval(autoPlay,3000);
	 function autoPlay(){
		index++;
		if(index==$olist.size() ){
			index=0;
		}
		$olist.eq(index)
		      .css("background","red")
		      .addClass("current")		      
		      .siblings()
		      .css("background","black")
		      .removeClass("current");		      
		$ulist.eq(index)
		      .fadeIn(1000)
		      .siblings()
		      .fadeOut(1000);
	}
 }
	return {
		fn : fn
	}
})